package website.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Api("照片实体类")
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "tb_photo",autoResultMap = true)
public class Photo {

    private Integer id;
    private Integer uid;
    private String src;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date issueTime;
    private Integer deleted;
}
